<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ page import="com.hu.example.domain.model.User" %>
<%@ page import="com.hu.example.Constants" %>
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Welcome</title>
    <link rel="stylesheet" href="<%=request.getContextPath()%>/css/style.css" type="text/css" />
    <link rel="stylesheet" href="<%=request.getContextPath()%>/css/common.css" type="text/css" />
  </head>
  <script>
      function logout() {
          var logoutFormObj = document.getElementById("logoutForm");
          logoutFormObj.submit();
      }
      
      function cancelPop() {
          document.getElementById("pop").style.display = "none";
      }
  </script>
  <body>
    <div id="pop">
      <div class="disabled_screen"></div>
      <div class="pop_win">
        <span class="pop_text">Simple demo pop window.</span>
        <input type="button" value="cancel" class="cancel_pop" onclick="cancelPop()" /></div>
    </div>
  <%User user = (User)session.getAttribute(Constants.USER); %>
    Welcome, <%=user.getUserName() %>
    <form action="logout.action" method="GET" id="logoutForm">
      <input type="button" id="button" class="button" value="Logout" onclick="logout()" />
    </form>
  </body>
</html>